two-phase set